package com.xoms.admin.controller.springmvc.req;


import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 验证验证码
 **/
public class VertifyVCodeParam {
	@NotEmpty(message = "手机号不能为空！")
	@Pattern(regexp = "^(1[1-9])\\d{9}$", message = "手机号格式不正确！")
	private String phone; // 手机号码
	@Pattern(regexp = "^1|2|3$", message = "类型不正确，1：找回密码")
	private String type; // 类型，1：找回密码
	@NotEmpty(message = "验证码不能为空！")
	@Pattern(regexp = "^([0-9]{4})$", message = "验证码格式不正确！")
	private String vcode; // 验证码

	public void setPhone(String phone) {
 		this.phone = phone;
	}

	public String getPhone() {
 		return phone;
	}

	public void setType(String type) {
 		this.type = type;
	}

	public String getType() {
 		return type;
	}

	public void setVcode(String vcode) {
 		this.vcode = vcode;
	}

	public String getVcode() {
 		return vcode;
	}

}
